import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

export default new Router({
  routes: [{
    path: '/',
    name: 'home',
    component: () => import( /* webpackChunkName: "home" */ '../views/Home.vue'),
    redirect: {
      name: 'welcome'
    },
    children: [{
        path: 'welcome',
        name: 'welcome',
        component: () => import( /* webpackChunkName: "welcome" */ '../views/Welcome.vue')
      },
      {
        path: 'rights',
        name: 'rights',
        component: () => import( /* webpackChunkName: "rights" */ '../views/auth/Rights.vue')
      }
    ]
  }]
})
